package com.vornitologist;

import com.vaadin.Application;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window;

/**
 * This application is served for non supported browsers (non-webkit atm). It
 * just contains a simple message. For a non-demo application it could contain a
 * simplified version of the UI built without Vaadin TouchKit.
 */
public class VornitologistFallbackApplication extends Application {

	private static final String MSG = "<h1>Ooops...</h1> <p>You accessed Hawaii "
			+ "with a browser that is not supported. <p>";

	@Override
	public void init() {
		Window window = new Window("Hawaii");
		CssLayout layout = new CssLayout();
		layout.setMargin(true);
		window.setContent(layout);

		window.addComponent(new Label(MSG, Label.CONTENT_XHTML));
		setMainWindow(window);

	}

}
